<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width" />
<%@ include file="/common/jsconfig.jspf" %>
<style type="text/css">

</style>
<script type="text/javascript">  
  
  $(function(){
	  
	  var code = getQueryString("code");
	  $("#code").val(code);
	  var state = getQueryString("state");
	  $("#state").val(state);
	  
	 var nickname = "${nickname}"; 
	 $("#nickname").val(nickname);
	 var openid = "${openid}"; 
	 $("#openid").val(openid);
	  
		//获取url参数值	  
		function getQueryString(name) { 
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
			var r = window.location.search.substr(1).match(reg); 
			if (r != null) return unescape(r[2]); return null; 
		} 
	  
  });
  
  
  
</script>  

<title>网页授权</title>
 
</head>
<body>

<div class="wxapi_container">
    <div class="wxapi_index_container">
      <ul class="label_box lbox_close wxapi_index_list"  style="background-color:red;text-align:center;list-style-type:none;">
        <li class="label_item wxapi_index_item"><a class="label_inner" href="#menu-basic" style="color:#FFF">网页授权</a></li>
      </ul>
    </div>
    <form action="${shop }/flow/complaint/addComplaint.do" method="post" id="complaintForm" name="complaintForm" >
	    <div class="lbox_close wxapi_form" style="padding:10px;margin:10px;">
	    		  姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名 &nbsp;&nbsp;
	    		  <input type="text" id="nickname" name="nickname" placeholder="您的姓名" style="width:80%;overflow-x:visible;overflow-y:visible;height:26px;" />
	    		  <br/><br/>
	    		  state&nbsp;&nbsp;
	    		 <input type="text" id="state" name="state" placeholder="手机号码"  style="width:80%;overflow-x:visible;overflow-y:visible;height:26px;" /><br/>
	    		
	    		 <br/>
	    		 code:&nbsp;&nbsp;<input type="text" name="code" id="code" />
	    		 <br/>
	    		 openid <input type="text" name="openid" id="openid" />
	    		 <br/>
	    		 <input type="hidden" name="sortnum" id="sortnum" />
	    </div>
	    <div class="lbox_close wxapi_form" style="padding:10px;margin:10px;">
	    	<textarea rows="8" cols="25" name="complanitText" placeholder="请输入您的投诉内容"></textarea>
	    </div>
	     <span class="btn btn_primary" id="subimtForm" style="cursor:pointer">提交</span>
    </form>
  </div>
</body>
</html>